---
title: Gradual Spacing
date: 2024-05-25
description: Word animation for gradual spacing between letters
author: nyxb
published: true
---

<ComponentPreview name="gradual-spacing-demo" />


### Installation

<Tabs defaultValue="cli">

<TabsList>
  <TabsTrigger value="cli">CLI</TabsTrigger>
  <TabsTrigger value="manual">Manual</TabsTrigger>
</TabsList>
<TabsContent value="cli">

```bash
npx nyxb@latest add gradual-spacing
```

</TabsContent>

<TabsContent value="manual">

<Steps>

Copy and paste the following code into your project.

```text
components/ui/gradual-spacing.tsx
```

<ComponentSource name="gradual-spacing" />

</Steps>

</TabsContent>

</Tabs>

## Props

| Prop          | Type            | Description                                        | Default |
| ------------- | --------------- | -------------------------------------------------- | ------- |
| className     | string          | The class name to be applied to the component      |         |
| duration      | number          | The class name to be applied to the shimmer.       | 0.5     |
| delayMultiple | number          | The class name to be applied to the shimmer.       | 0.1     |
| text          | string          | An array of words to rotate through                | ""      |
| framerProps   | HTMLMotionProps | An object containing framer-motion animation props | {}      |
